package com.smart.config.configuration;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * .............................................
 * When I wrote this, only God and I understood what I was doing
 * Now, God only knows
 * .............................................
 *
 * @ProjectName: spring-boot-example
 * @Package: com.smart.config
 * @ClassName: User
 * @Description: 描述
 * @Author: zhangwei
 * @CreateDate: 2021/12/6 16:34
 * @UpdateUser: 更新者
 * @UpdateDate: 2021/12/6 16:34
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 * 单值注入  @Value
 * 批量注入 ConfigurationProperties
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "user")
public class UserProperties {
    private String username;
    private String password;
    private String createDate;
}
